package com.yunupmall.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Controller
public class LoginContrller {
    @RequestMapping(value = {"/adminLogin"})
    public String getLogin() {
        return "redirect:login-1.html";
    }

    @RequestMapping(value = {"/skiphtml/{page}"})
    public String skiphtml(@PathVariable("page") String page) {
        return page;
    }

    @RequestMapping(value = {"/skippage"})
    public String skippage(@RequestParam("url") String url,@RequestParam(value = "id",required = false) Integer id) {
        return url;
    }
}
